<div class="interest_user t_topicpad">
	<h3>相关标签</h3>
    <div class="topic_related">
    	<span id="i_PublicTopic" class="t_topic_rx">
        <?php if ($this->related_topics) { ?>
            <?php foreach($this->related_topics as $key => $val){ ?>
            <a href="topic/<?php echo $val['url_token']; ?>" class="i_glotopic user_msg" data-message="&uid=<?php echo $val['topic_id']; ?>&card=topic"><?php echo $val['topic_title']; ?></a>
            <?php } ?>
        <?php } ?> 
		</span>
		<?php if ($this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator'] OR ($this->topic_info['topic_lock'] == 0 && $this->user_info['permission']['edit_topic'])) { ?>
	    <span id="editor_topicBtns" onclick="$.editor_topic_x(this);" title="标签编辑" class="q_editor i_small">标签编辑</span>
	    <div class="editor_input i_hide rightSide " id="editor_input_handle">
	    <p style="padding:5px 0; color:red; text-align:left;" id="tips_err"></p>
	    <input type="text" class="i_glotxtClass" value="创建添加相关标签..." onKeyUp="$('#tips_err').hide();"  onfocus="$.focus(this,'创建添加相关标签...');" maxlength="13" id="editor_input" ><a href="javascript:;" onClick="$.exit_topic();">取消</a>&nbsp;&nbsp;<a onclick="$.establish_topicx();" title="确定添加»" href="javascript:;" class="i_green_bt2">添加»</a>
	   </div>
	   <?php } ?>
    </div>
    
</div>